package com.admin.client.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 武将星级表(CoreHeroStar)表实体类
 *
 * @author cxy
 * @since 2025-01-09 10:28:28
 */
@ApiModel("武将星级表")
@ColumnWidth(25)//列宽
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class CoreHeroStar extends Model<CoreHeroStar> {// swagger2,mybatis-plus
    ///////////////////////////////////////////////////////////////////////////////////////////////////////// 生成实体字段
    @TableId(type = IdType.INPUT)
    @ApiModelProperty("武将升星表id")
    @ExcelProperty({"武将升星表id","id"})
    private Long id;
    
    @ApiModelProperty("武将id")
    @ExcelProperty({"武将id","heroId"})
    private Long heroId;
    
    @ApiModelProperty("星级")
    @ExcelProperty({"星级","star"})
    private Integer star;
    
    @ApiModelProperty("攻击成长")
    @ExcelProperty({"攻击成长","attGrowth"})
    private Integer attGrowth;
    
    @ApiModelProperty("防御成长")
    @ExcelProperty({"防御成长","defGrowth"})
    private Integer defGrowth;
    
    @ApiModelProperty("策略成长")
    @ExcelProperty({"策略成长","magicGrowth"})
    private Integer magicGrowth;
    
    @ApiModelProperty("先攻成长")
    @ExcelProperty({"先攻成长","speedGrowth"})
    private Integer speedGrowth;
    
    @ApiModelProperty("统率成长")
    @ExcelProperty({"统率成长","commandGrowth"})
    private Integer commandGrowth;
    
    @ApiModelProperty("升星信物消耗")
    @ExcelProperty({"升星信物消耗","levelUpCost"})
    private String levelUpCost;
    
    ///////////////////////////////////////////////////////////////////////////////////////////////////////// 序列化版本号
    @TableField(exist = false)
    private static final long serialVersionUID = 462822529949075145L;
    /////////////////////////////////////////////////////////////////////////////////////////////////////////// 获取主键值
    @Override
    public Serializable pkVal() {
        return this.id;
    }
    ///////////////////////////////////////////////////////////////////////////////////////////////////////  基础数据初始化
    public CoreHeroStar init() {
        return this;
    }
    /////////////////////////////////////////////////////////////////////////////////////////////////////////// 领域业务
}

